const { Writable } = require('stream');

class MyWrite extends Writable {
  _write(chunk, encoding, cb) {
    console.log(chunk);
    cb();
  }
}
let mw = new MyWrite();
mw.write('ok', function () {
  console.log('ok');
});
mw.write('ee');

/**
 * 不同的人的可写流不一样的
 * http前端来的数据 --》读写一下，写入时
 */
